package com.example.config;

import com.example.bean.Cat;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.stereotype.Component;
@Configuration(proxyBeanMethods = true)

//Configuration 和Component的这两个注解很像 但是有不同  Configuration有一个属性proxyBeanMethods
public class SpringConfig33 {
    @Bean
    public Cat cat(){
        return new Cat();
    }

}
